# Its somehow simple, but working very good
DEBUG=-g -DDEBUG=1

debug:
	cc ${DEBUG} -o serpent serpent.c
	cc ${DEBUG} -o serpentd serpentd.c

all:
	cc -o serpent serpent.c
	cc -o serpentd serpentd.c

install: serpent serpentd
	cp serpent /usr/bin
	cp serpentd /usr/sbin
	test -f /etc/serpentd.conf || cp -v serpentd.conf.sample /etc/serpentd.conf

uninstall: /usr/bin/serpent /usr/sbin/serpentd
	rm -f /usr/bin/serpent
	rm -f /usr/sbin/serpentd

clean:
	rm -f serpent serpentd

